package homework;

import java.util.*;
class Solution {
    public void merge(int A[], int m, int B[], int n) {
        for (int i = 0; i < n; i++) {
            A[m]=B[i];
            m++;
        }
        Arrays.sort(A);
    }
}
public class Text {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            List list=new ArrayList();
            String str=scanner.nextLine();
            for (int i = 0; i < str.length(); i++) {
                if(!list.contains(str.charAt(i))){
                    list.add(str.charAt(i));
                    System.out.print(str.charAt(i));
                }
            }
            System.out.println();
        }
    }
}
